package com.ptszyxx.popose.common.enums;

import com.ysg.utils.YStringUtil;

public enum ShopTabEnum {
    avatar("1", "头像框"),
    mounts("2", "坐骑"),
    avatar_my("3", "头像框"),
    mounts_my("4", "坐骑"),
    ;

    private String type;
    private String name;

    ShopTabEnum(String type, String name){
        this.type = type;
        this.name = name;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public static ShopTabEnum get(String name){
        ShopTabEnum[] values = values();
        for (ShopTabEnum item: values) {
            if (YStringUtil.eq(item.getName(), name)){
                return item;
            }
        }
        return null;
    }

}
